using UnityEngine;
using System.Collections;

public class Credits : MonoBehaviour {

	GUIStyle style = new GUIStyle();
	
	
	float textPosY = Screen.height/2 - 250;
	float textPosX = Screen.width/2 - 250;
	
		
	void Start () {
	
	}
	
	void Update () {
		if(Input.GetKeyDown(KeyCode.Escape)){
			Application.LoadLevel("Menu");
		}	
	}
	
	void OnGUI () {
		style.fontSize = 48;
	   	style.normal.textColor=Color.yellow;
	   	style.alignment=TextAnchor.MiddleCenter;
		GUI.Label (new Rect (textPosX, textPosY +150, 500, 300), 
		"Paulostore"+"\n\n\n PRESS ESC TO RETURN" 
		,style);
		
		style.fontSize = 24;
	   	style.normal.textColor=Color.yellow;
	   	style.alignment=TextAnchor.MiddleCenter;
		GUI.Label (new Rect (textPosX, textPosY, 500, 300), 
		"Game designer, art, programming and concept by :"			
		,style);
		
	}
}
